window.addEventListener('DOMContentLoaded', event => {
    // Simple-DataTables
    // https://github.com/fiduswriter/Simple-DataTables/wiki

    const datatablesSimple = document.getElementById('datatablesSimple');
    if (datatablesSimple) {
        new simpleDatatables.DataTable(datatablesSimple,{
            labels: {
                placeholder: "搜索...",
                perPage: "每页 {select} 条记录",
                noRows: "没有找到相关记录",
                info: "显示第 {start} 至 {end} 条记录，共 {rows} 条",
                noResults: "没有匹配的结果"
            }
        });
    }
});
